<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="/view/common/js-css.jsp" %>
<title>用户修改</title>
</head>
<body>
	<div class="frameWrapper">
		<div class="titlebar">
			<p>当前位置：系统管理<span>/</span>维护用户<span>/</span>修改用户</p>
		</div>
		<div class="formbar">
			<form name="addGrade" id="grade" action="${pageContext.request.contextPath}/ManagerServlet?command=update" method="post">
			    <div class="form_control">
				     <span class="input-name">用户编号：</span>${userInfo.user_id }
				     <input class="required" value="${userInfo.user_id }" type="hidden"  data-valid="isNonEmpty" name="userId">
			    </div>
			    <div class="form_control">
			    	<span class="input-name ">角色类型：</span>
				    <select name="roleId" class="select required" data-valid="isNonEmpty" data-error="角色类型必填">
				    	<option value="0">-----请选择-----</option>
				    	<c:forEach items="${roleList}" var="roleList">
				    		<option value="${roleList.role_id }" ${userInfo.role_id==roleList.role_id?"selected='selected'":"" }>${roleList.role_name}</option>
				    	</c:forEach>
				    </select>
			    </div>
			    <div class="form_control">
			     	<span class="input-name">用户名：</span>
			      	<input class="required" value="${userInfo.username }" type="text" data-tip="请输入姓名" data-valid="isNonEmpty" data-error="姓名不能为空" name="username">
			    </div>
			    <div class="form_control">
			     	<span class="input-name">用户账号：</span>
			     	<input class="required" value="${userInfo.account }" type="text" data-tip="请输入姓名" data-valid="isNonEmpty" data-error="账号不能为空" name="account">
			    </div>
			    <div class="form_control">
			    	<span class="input-name">密码：</span>
			      	<input class="required" value="${userInfo.password }" type="password" name="password" data-tip="请输入密码" data-valid="isNonEmpty" data-error="密码不能为空">
			    </div>
			    <div class="submit">
			     	<input type="submit" value="立即提交" />
			    </div>
			</form>
   		</div>
    </div>
</body>
</html>